package com.sec.typhoondatapush.entity;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.math.BigDecimal;

@Document(collection = "sina_stock")
@Data
public class SinaStock {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    @Id
    private ObjectId id;

    @Field("date")
    private int date;

    @Field("volume")
    private int volume;

    @Field("amount")
    private int amount;

    @Field("preClose")
    private BigDecimal preClose;

    @Field("price")
    private BigDecimal price;

    @Field("avgPrice")
    private BigDecimal avgPrice;

    @Field("netChangeRatio")
    private BigDecimal netChangeRatio;

    @Field("time")
    private Long time;

    @Field("ccl")
    private int ccl;

}
